<?php

namespace app\beautiful\model\finance;

use app\common\model\CommonModel;



class SettlementModel extends CommonModel{

    protected  $name = 'beautiful_settlement';

    protected  $pk   = 'settlement_id';


    public static function onBeforeInsert($model)
    {
        $model->set("add_time", date('Y-m-d H:i:s'));
        $model->set("add_ip", request()->ip());
    }


}